
#region Imports

using System;
using System.Messaging;
using System.Xml;

#endregion

namespace Justa.Messaging
{
    /// <summary>
    /// 
    /// </summary>
    /// 
    public interface IMessageSenderGateway
    {
        /// <summary>
        /// 
        /// </summary>
        /// 
        string Destination { get; }

        /// <summary>
        /// 
        /// </summary>
        /// 
        Type[] TargetTypes { get; }

        /// <summary>
        /// 
        /// </summary>
        /// 
        /// <param name="message"></param>
        /// 
        void Send(object message);

        /// <summary>
        /// 
        /// </summary>
        /// 
        /// <param name="message"></param>
        /// <param name="destination"></param>
        /// 
        void Send(object message, string destination);

        /// <summary>
        /// 
        /// </summary>
        /// 
        /// <param name="message"></param>
        /// <param name="destination"></param>
        /// <param name="targetTypes"></param>
        /// 
        void Send(object message, string destination, Type[] targetTypes);

        /// <summary>
        /// 
        /// </summary>
        /// 
        /// <param name="message"></param>
        /// 
        void Send(string message);

        /// <summary>
        /// 
        /// </summary>
        /// 
        /// <param name="message"></param>
        /// <param name="destination"></param>
        /// 
        void Send(string message, string destination);

        /// <summary>
        /// 
        /// </summary>
        /// 
        /// <param name="message"></param>
        /// <param name="destination"></param>
        /// <param name="targetTypes"></param>
        /// 
        void Send(string message, string destination, Type[] targetTypes);

        /// <summary>
        /// 
        /// </summary>
        /// 
        /// <param name="message"></param>
        /// 
        void Send(XmlDocument message);

        /// <summary>
        /// 
        /// </summary>
        /// 
        /// <param name="message"></param>
        /// <param name="destination"></param>
        /// 
        void Send(XmlDocument message, string destination);

        /// <summary>
        /// 
        /// </summary>
        /// 
        /// <param name="message"></param>
        /// <param name="destination"></param>
        /// <param name="targetTypes"></param>
        /// 
        void Send(XmlDocument message, string destination, Type[] targetTypes);

        /// <summary>
        /// 
        /// </summary>
        /// 
        /// <param name="message"></param>
        /// 
        void Send(Message message);

        /// <summary>
        /// 
        /// </summary>
        /// 
        /// <param name="message"></param>
        /// <param name="destination"></param>
        /// 
        void Send(Message message, string destination);

        /// <summary>
        /// 
        /// </summary>
        /// 
        /// <param name="message"></param>
        /// <param name="destination"></param>
        /// <param name="targetTypes"></param>
        /// 
        void Send(Message message, string destination, Type[] targetTypes);
    }
}
